#ifndef __DIGIMON_UI_H__
#define __DIGIMON_UI_H__

#include <stdint.h>
#include <string.h>
#include "voled_api.h"
#include "digimon_api.h"

typedef unsigned char uchar;
#define DIGIMON_BMP_L   16
#define DIGIMON_BMP_W   2

#define AIXIN_W 32

#define const_setting_back      "                     "
#define STR_SIZE_8  8
#define STR_SIZE_12 12
#define STR_SIZE_16 16
#define STR_SIZE_32 32

typedef struct _ui{
    void(* draw_digimon)(uint8_t x, uint8_t y, uchar (*digimon)[DIGIMON_H]);
    void(* draw_sys_bmp)(uint8_t x, uint8_t y, uint8_t index);
    void(* draw_sys_xin)(uint8_t x, uint8_t y, uint8_t type);
    void(* draw_sys_title)(const char *title);
    void(* draw_digi_shirt)(uint8_t x, uint8_t y, uint8_t type);
    void(* draw_digi_ill)(uint8_t x, uint8_t y);
    void(* draw_progress)(uint8_t x, uint8_t y, int current, int max);
    void(* draw_weather)(uint8_t x, uint8_t y, uint8_t code);
    void(* draw_sysicon)(uint8_t x, uint8_t y, uint8_t code);
}UI_api;
extern UI_api ui;



#endif